﻿using System;
using System.Threading;

class ComparingFloats
{
    static void Main()
    {
        Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture; 
        Console.Write("Enter a floating-point number: ");
        decimal a = decimal.Parse(Console.ReadLine());
        Console.Write("Enter another floating-point number: ");
        decimal b = decimal.Parse(Console.ReadLine());
        const decimal eps = 0.000001M;
        bool equal = Math.Abs(a - b) < eps;
        Console.WriteLine("Equal (with precision eps=0.000001): " + equal);
    }
}